<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <style>
        .red-class{
            color:red;
        }
        .middle-class{
            text-align: center;
        }
        .size-class{
            font-size: 40px;
        }
        .green-class{
            color:green;
        }
        .error-class{
            font-weight: bolder;

        }
    </style>
</head>
<body>


<div id="app">
    <p :class="{
        'red-class':isRed,
        'middle-class':isMiddle,
        'size-class':isFontSize
    }">{{msg}}</p>

    <p :class="[activeClass,errorClass]">通过数组样式绑定</p>
    <p :style="{color:colorStyle,'font-Size':sizeStyle}">通过绑定style修改样式</p>
</div>
<script>
    let vm = new Vue({
        el:'#app',
        data:{
            msg:'欢迎来到dap高级研发群',
            isRed:true,
            isMiddle:true,
            isFontSize:true,
            activeClass:'green-class',
            errorClass:'error-class',
            colorStyle:'blue',
            sizeStyle:'30px'
        }
    })
</script>

</body>
</html>